//
//  MRTrialSwitchCell.h
//  MoRan
//
//  Created by MoRan  on 2023.
//  Copyright © 2023 MoRan . All rights reserved.
//

#import "BaseTableViewCell.h"

@class MRTrialSwitchCell;
@class MRTrialSwitchCellModel;

@protocol MRTrialSwitchCellDelegate <NSObject>

- (void)trialSwitchCell:(MRTrialSwitchCell *)cell isOn:(BOOL)isOn;

@end

@interface MRTrialSwitchCell : BaseTableViewCell

@property (nonatomic,weak) id<MRTrialSwitchCellDelegate> delegate;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UISwitch *mySwitch;
@property (strong, nonatomic) MRTrialSwitchCellModel *model;

@end



#pragma mark - Model

@interface MRTrialSwitchCellModel : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,assign) BOOL isOn;

+ (MRTrialSwitchCellModel *)ittemModelWithTitle:(NSString *)title isOn:(BOOL)isOn;

@end



